package com.taxi.service;

import com.taxi.remote.TerminalClient;
import com.taxi.response.AroundsearchResponse;
import com.taxi.response.PointResponse;
import com.taxi.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: aniu
 * @Date: 2023/9/30
 * @ClassName: TerminalService
 * @Description: Write class functionality and purpose here.
 * @Version: 1.0
 */
@Service
public class TerminalService {
    @Autowired
    private TerminalClient terminalClient;

    public Result add(String name,String desc){
        return terminalClient.add(name,desc);
    }

    public Result aroundsearch(AroundsearchResponse aroundsearchResponse) {
        return terminalClient.aroundsearch(aroundsearchResponse);
    }

    public Result trsearch(String tid, Long starttime, Long endtime) {
        return terminalClient.trsearch(tid,starttime,endtime);
    }

    public Result update(PointResponse pointResponse) {
        return terminalClient.update(pointResponse);
    }
}
